ComponentOne Bitmap for UWP
C1.UWP.DX Assembly / C1.Util.DX Namespace / DXUtil Class / SizeOf Method / SizeOf<T>() Method
A struct to evaluate.

In This Topic
    SizeOf<T>() Method
    In This Topic
    Return the sizeof a struct from a CLR. Equivalent to sizeof operator but works on generics too.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SizeOf(Of T As {New, Struct})() As System.Integer
    public static System.int SizeOf<T>()
    where T: new(), struct

    Type Parameters

    T
    A struct to evaluate.

    Return Value

    Size of this struct.
    See Also